import request from '@/utils/request'

// 查询达标基本条件列表
export function listBasicStandard(query) {
  return request({
    url: '/workSafetyStandardization/BasicStandard/list',
    method: 'get',
    params: query
  })
}

// 查询达标基本条件详细
export function getBasicStandard(basicStandardId) {
  return request({
    url: '/workSafetyStandardization/BasicStandard/' + basicStandardId,
    method: 'get'
  })
}

// 新增达标基本条件
export function addBasicStandard(data) {
  return request({
    url: '/workSafetyStandardization/BasicStandard',
    method: 'post',
    data: data
  })
}

// 修改达标基本条件
export function updateBasicStandard(data) {
  return request({
    url: '/workSafetyStandardization/BasicStandard',
    method: 'put',
    data: data
  })
}

// 删除达标基本条件
export function delBasicStandard(basicStandardId) {
  return request({
    url: '/workSafetyStandardization/BasicStandard/' + basicStandardId,
    method: 'delete'
  })
}
